{if condition=" $box_is_pjax != 1 "}
<!--左边导航-->
<aside class="main-sidebar">

    <section class="sidebar">

        <div class="user-panel">
            <div class="pull-left image">
                <img src="{$user['userinfo']['avatar_turn']|default='/static/common/img/default.png'}" class="img-circle" alt="User Image">
            </div>
            <div class="pull-left info">
                {empty name="user['id']"}
                <p class="x-mt-10"><i class="fa fa-circle text-muted"></i> 离线</p>
                {else /}
                <p><a href="{:url('@member/users/index')}">{$user['name'] ?: $user['username']}</a></p>
                <i class="fa fa-circle text-success"></i> 在线
                {/empty}
            </div>
        </div>

        <form action="#" method="get" class="sidebar-form">
            <div class="input-group">
                <input type="text" name="q" class="form-control" placeholder="搜索">
                <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
            </div>
        </form>

        <ul class="sidebar-menu" data-widget="tree">
            <li class="header">网站导航</li>

            {volist name="mDaoHangList" id="vo"}
            {if condition="$vo.h_layer eq 1 && $vo.url neq null"}
	            <li class="">
	                <a {empty name="$vo.url"} href="javascript:void(0);" {else /} href="{$vo.url}"{/empty} {eq name="$vo.target" value="1"}target="_blank"{/eq}>
	                    {notempty name="$vo.icon"}
	                    	<i class="fa {$vo.icon} {$vo.iconcolor|default=''}"></i>
	                    {/notempty}
	                    <span>{$vo.name}</span>
	                    {notempty name="$vo.news"}
	                    <span class="pull-right-container">
	              			<small class="label pull-right {$vo.bgcolor|default='bg-green'}">{$vo.news}</small>
	            		</span>
	            		{/notempty}
	                </a>
	            </li>
            {elseif condition="$vo.h_layer eq 1 " /}
            <li class="treeview">
                <a {empty name="$vo.url"} href="javascript:void(0);" {else /} href="{$vo.url}"{/empty}
                	{eq name="$vo.target" value="1"} target="_blank"{/eq} >
                	{notempty name="$vo.icon"}
	                   	<i class="fa {$vo.icon} {$vo.iconcolor|default=''}"></i>
	                {/notempty}
                    <span>{$vo.name}</span>

                    <span class="pull-right-container">
            			{empty name="$vo.url"}<i class="fa fa-angle-left pull-right"></i>{/empty}
                    	{notempty name="$vo.news"}
              				<small class="label pull-right {$vo.bgcolor|default='bg-green'}">{$vo.news}</small>
            			{/notempty}
                    </span>
                </a>
                <ul class="treeview-menu">
                	{volist name="mDaoHangList" id="to"}
                	{if condition=" $to.pid eq $vo.id "}
                    <li class="">
                        <a {empty name="$to.url"} href="javascript:void(0);" {else /} href="{$to.url}"{/empty}
                			{eq name="$to.target" value="1"} target="_blank"{/eq} >
                        	{notempty name="$to.icon"}
			                   	<i class="fa {$to.icon} {$to.iconcolor|default=''}"></i>
			                {/notempty}
                        	{$to.name}
		                    <span class="pull-right-container">
		                    	{empty name="$to.url"}<i class="fa fa-angle-left pull-right"></i>{/empty}
		                    	{notempty name="$to.news"}
		              			<small class="label pull-right {$to.bgcolor|default='bg-green'}">{$to.news}</small>
		            			{/notempty}
		                    </span>
                        </a>
                    </li>
                    {/if}
                    {/volist}
                </ul>
            </li>
            {/if}
			{/volist}

            {volist name="$arcList" id="vo"}
            {if condition="$vo.h_layer eq 1 && $vo.mid neq 22 && $vo.dirs neq null"}
	            <li class="">
	                <a href="{:url('/category/'.$vo.dirs)}" target="{$vo.target}">
		                <i class="fa fa-file-text"></i>
	                    <span>{$vo.typename}</span>
	                </a>
	            </li>
            {elseif condition="$vo.h_layer eq 1 && $vo.mid neq 22 " /}
            <li class="treeview">
                <a {empty name="$vo.dirs"} href="javascript:void(0);" {else /} href="{:url('/category/'.$vo.dirs)}"{/empty}
                	target="{$vo.target}" >
                	{eq name="$vo.dirs" value="null"}
	                   	<i class="fa fa-file-text"></i>
	                {else}
	                   	<i class="fa fa-list"></i>
	                {/eq}
                    <span>{$vo.typename}</span>
                    <span class="pull-right-container">
                    	<i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                	{volist name="arcList" id="to"}
                	{if condition=" $to.pid eq $vo.id "}
                    <li>
                        <a {empty name="$to.dirs"} href="javascript:void(0);" {else /} href="{:url('/category/'.$to.dirs)}"{/empty}
                			target="{$to.target}">
			                <i class="fa fa-file-text"></i>
                        	{$to.typename}
                        </a>
                    </li>
                    {/if}
                    {/volist}
                </ul>
            </li>
            {/if}
			{/volist}

            {volist name="$arcList" id="vo"}
            {if condition="$vo.h_layer eq 1 && $vo.mid eq 22 && $vo.jumplink neq null"}
	            <li class="">
	                <a href="{$vo.jumplink}" target="{$vo.target}">
		                   	<i class="fa fa-file-text"></i>
	                    <span>{$vo.typename}</span>
	                </a>
	            </li>
            {elseif condition="$vo.h_layer eq 1 && $vo.mid eq 22 " /}
            <li class="treeview">
                <a {empty name="$vo.jumplink"} href="javascript:void(0);" {else /} href="{$vo.jumplink}"{/empty}
                	target="{$vo.target}" >
                	{eq name="$vo.mid" value="20"}
	                   	<i class="fa fa-file-text"></i>
	                {else}
	                   	<i class="fa fa-list"></i>
	                {/eq}
                    <span>{$vo.typename}</span>
                    <span class="pull-right-container">
                    <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                	{volist name="arcList" id="to"}
                	{if condition=" $to.pid eq $vo.id "}
                    <li>
                        <a {empty name="$to.jumplink"} href="javascript:void(0);" {else /} href="{$to.jumplink}"{/empty}
                			target="{$to.target}">
			                <i class="fa fa-circle-o"></i>
                        	{$to.typename}
                        </a>
                    </li>
                    {/if}
                    {/volist}
                </ul>
            </li>
            {/if}
			{/volist}


            <!--<li class="header">标签</li>
            <li>
                <a href="#"><i class="fa fa-circle-o text-red"></i> <span>ABCDEF</span></a>
            </li>-->
        </ul>

    </section>

</aside>

{/if}